package com.lh.remote;

import com.lh.api.Demo;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Component;

/**
 * @author: linghao
 * @since: 2022/6/22
 */
@Component
public class DemoRemote {

    @DubboReference
    private Demo demo;

    public String hello(String name){
        return demo.helloDemo(name);
    }

    public String sentinelDemo(String test){
        return demo.sentinelDemo(test);
    }
}
